$(function(){
    let num = 0
    setInterval(() => {
        if(num>9999999) num = 0
        num+= 109
        $('.money').text(num)
        $('.num span').text(num/109)
    }, 2);
    setInterval(() => {
        let d = new Date()
        let year = d.getFullYear()
        let month = d.getMonth() + 1
        let date = d.getDate()
        let h = d.getHours()
        let m = d.getMinutes()
        let s = String(d.getSeconds()).padStart(2,0)
        console.log(year);
        $('.date').text(`${year}-${month}-${date} 
                        ${h}:${m}:${s}
        
        `)
    }, 1000);
})
